package cc.entity;

import io.swagger.annotations.Api;

import io.swagger.annotations.ApiModel;

import io.swagger.annotations.ApiModelProperty;



import java.io.Serializable;



/**

 * 用户修改密码实体类

 *

 * @author My

 * @date 2021/10/12 11:38

 */

@ApiModel(value = "用户修改密码类",description = "用户修改密码类")

public class UserPassowrdEdit implements Serializable {



    @ApiModelProperty(value = "用户id",example = "1")

    private Integer id;



    @ApiModelProperty(value = "旧密码",example = "123456")

    private String oldPassword;



    @ApiModelProperty(value = "新密码",example = "654321")

    private String newPassword;





    public UserPassowrdEdit() {

    }



    public UserPassowrdEdit(Integer id, String oldPassword, String newPassword) {

        this.id = id;

        this.oldPassword = oldPassword;

        this.newPassword = newPassword;

    }



    public Integer getId() {

        return id;

    }



    public void setId(Integer id) {

        this.id = id;

    }



    public String getOldPassword() {

        return oldPassword;

    }



    public void setOldPassword(String oldPassword) {

        this.oldPassword = oldPassword;

    }



    public String getNewPassword() {

        return newPassword;

    }



    public void setNewPassword(String newPassword) {

        this.newPassword = newPassword;

    }



    @Override

    public String toString() {

        return "UserPassowrdEdit{" +

                "id=" + id +

                ", oldPassword='" + oldPassword + '\'' +

                ", newPassword='" + newPassword + '\'' +

                '}';

    }

}

